]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Try harder to find a matching mutter branch
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 25 Apr 2019 21:11:11 +0000 (23:11 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 26 Apr 2019 19:32:51 +0000 (21:32 +0200)
Depending on how gitlab's CI checks out gnome-shell, the shell branch
may not have a local reference like "gnome-3-32", but only a remote
one like "remotes/origin/gnome-3-32".

Consider that case as well when looking for a corresponding mutter branch.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/511

.gitlab-ci/checkout-mutter.sh

index 618ad258245b7c1f26ba57a002c65c031091eedf..9eb72ebfc32e1ba2e57aaa98aab14bff7fc9a77a 100755 (executable)
@@ -26,6 +26,7 @@ fi
 
 if [ -z "$mutter_target" ]; then
   mutter_target=$(git branch -r -l origin/$shell_branch)
+  mutter_target=${mutter_target:-$(git branch -r -l ${shell_branch#remotes/})}
   mutter_target=${mutter_target:-origin/master}
   echo Using $mutter_target instead
 fi